<?php
include_once "conn.php";
$name = $_POST['name'];
$boss = $_POST['boss'];
$phone = $_POST['phone'];
$dizhi = $_POST['dizhi'];
$mail = $_POST['mail'];
$url = $_POST['url'];
$time = strtotime($_POST['time']);
$desc = $_POST['desc'];
$main = new main();
$result = $main-> xiugailibraryinfo($name,$boss,$phone,$dizhi,$mail,$url,$time,$desc);
if ($result==1 or  $result==0){
     $a['error']= 1;//成功
}
else{
     $a['error']=0;
}
echo json_encode($a);